package cn.sc.summer.token.builder;

import cn.sc.summer.token.po.Token;

/**
 * 类名：具体构建者的构建过程配置
 *
 * @author a-xin
 * @date 2023/9/5 14:54
 */
public class TokenBuilderDirector {

    private final BaseTokenBuilder builder;

    public TokenBuilderDirector(BaseTokenBuilder builder) {
        this.builder = builder;
    }

    public Token build() {
        builder.buildTokenInfo();
        return builder.build();
    }

}


